package Change.dao.hibernate;

import java.util.List;
import java.util.Map;

import Change.dao.SchoolDao;
import Change.model.School;

public class SchoolDaoHibernate extends GenericDaoHibernate<School, Long> implements
		SchoolDao {
	
	public SchoolDaoHibernate(){
		super(School.class);
	}

	public List<School> getSchools(Long id) {
		if(id == null)
		    return getHibernateTemplate().find("from School");
		else
			return getHibernateTemplate().find("from School where id = ?",id);
	}

}
